package com.kolon.framework.interfaces;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

@SuppressWarnings("rawtypes")
public interface Dao {
	
	/**
	 * 목록 조회
	 */
	List getList(String qry, Map args) throws SQLException;

	/**
	 * 페이징 목록 조회
	 */
	List getPageList(String qry, Map args, int startIndex, int recordPerPage) throws SQLException;
	
	/**
	 * 상세 조회
	 */
	Map getMap(String qry, Map args) throws SQLException;
	
	/**
	 * 총 수
	 */
	int getCount(String qry, Map args) throws SQLException;

	/**
	 * 등록
	 */
	int insert(String qry, Map args) throws SQLException;
	
	/**
	 * 수정
	 */
	int update(String qry, Map args) throws SQLException;
	
	/**
	 * 삭제
	 */
	int delete(String qry, Map args) throws SQLException;
	
}
